<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>弹性布局</title>
		<style type="text/css">
			#container{
				width: 90%;
				height: 400px;
				background-color: grey;
				margin: auto;
				display: flex;
				flex-direction: row;
				flex-wrap: wrap;
				/*justify-content: center;*/
				/*justify-content: space-around;*/
				justify-content: space-between;
			}
			div[id*='div']{
				width: 200px;
				/*flex: 1;*/
				height: 200px;
				border:2px solid red;
			}
		</style>
	</head>
	<body>
		<div id="container">
			<div id="div01"></div>
			<div id="div02"></div>
			<div id="div03"></div>
			<div id="div04"></div>
		</div>
	</body>
</html>
